// Log Insert
var vi_log_save = {
    click: function (_c_menu, _c_prjType, _c_prjCategory, _c_prjTag, _c_prjstartDate, _c_prjKeyword, _v_prjCode, _v_product_TypeCode) {
        $.ajax({
            type: "GET",
            cache: false,
            dataType: "json",
            data: {
                c_menu: _c_menu,
                c_prjType: _c_prjType,
                c_prjCategory: _c_prjCategory,
                c_prjTag: _c_prjTag,
                c_prjstartDate: _c_prjstartDate,
                c_prjKeyword: _c_prjKeyword,
                v_prjCode: _v_prjCode,
                v_productTypeCode: _v_product_TypeCode
            },
            url: "/Ajax/work_test/log.json",
            success: function (data) {
                console.log(data);
            }
        });
    }
}

$(document).ready(function(){
	contact_pos();

	$(window).resize(function(){
		contact_pos();
	});

	function contact_pos(){
		var contact_wt = window.innerWidth;
		var contact_ht = window.innerHeight;

		if(contact_wt >= 768 && contact_ht <= 917){
			$('.map_box').css({
				'top':'0',
				'margin-top':'0'
			});
		} else if(contact_wt >= 768 && contact_ht > 917) {
			$('.map_box').css({
				'top':'50%',
				'margin-top':'-458px'
			});
		} else if(contact_wt < 768){
			$('.map_box').css({
				'top':'0',
				'margin-top':'0'
			});
		}
	}
});

(function(i, s, o, g, r, a, m) {
    i['GoogleAnalyticsObject'] = r;
    i[r] = i[r] || function() {
        (i[r].q = i[r].q || []).push(arguments)
    }, i[r].l = 1 * new Date();
    a = s.createElement(o),
        m = s.getElementsByTagName(o)[0];
    a.async = 1;
    a.src = g;
    m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

ga('create', 'UA-56618181-1', 'auto');
ga('send', 'pageview');



